package com.os.config;

import lombok.SneakyThrows;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.net.InetAddress;
import java.net.UnknownHostException;

/**
 * @author 风亦未止
 * @date 2023/5/6 0:14
 */
@Configuration
public class InetAddressConfig {

    @SneakyThrows
    @Bean
    public InetAddress inetAddress(){
        return InetAddress.getLocalHost();
    }
}
